<template>
  <el-form class="right-event-number">
    <!-- <dropdown-normal v-model="wbData.activityType" :valLists="GENERAL_TYPES" label="活动类型" @change="onUpdateWbComponent" ></dropdown-normal> -->
    <!-- <dropdown-normal v-model="wbData.groupKey" :valLists="GROUP_TYPES" label="计数组" @change="onUpdateWbComponent" ></dropdown-normal> -->
    <input-normal type="number" label="目标总计数（所有人）" placeholder="限制总计数" v-model="wbData.total"  @change="onUpdateWbComponent"></input-normal>
    <switch-normal v-model="wbData.isUid" label="个人行为" @change="onUpdateWbComponent"></switch-normal>
    <input-normal type="number" label="每天限制分配计数" placeholder="每天限制分配计数" v-model="wbData.day_limit"  @change="onUpdateWbComponent"></input-normal>
    <input-normal type="number" label="限制总计数" placeholder="限制总计数" v-model="wbData.total_limit"  @change="onUpdateWbComponent"></input-normal>
    <input-normal type="number" label="调整计数基数" placeholder="如果开启个人，则为个人基数" v-model="wbData.base"  @change="onUpdateWbComponent"></input-normal>
    <switch-normal v-model="wbData.isDynamic" label="动态修改" @change="onUpdateWbComponent"></switch-normal>
    <input-normal type="number" label="每次增加或减少计数值" v-model="wbData.onceGrowValue"  @change="onUpdateWbComponent"></input-normal>
    <input-normal type="number" label="vip每次增加或减少计数值" v-model="wbData.vipOnceGrowValue"  @change="onUpdateWbComponent"></input-normal>
    <input-normal  label="每天缺省增加计数值" v-model="wbData.day_default" @change="onUpdateWbComponent"></input-normal>
    <!-- <input-normal label="符号（默认是加+）" v-model="wbData.op" @change="onUpdateWbComponent"></input-normal> -->
    <input-normal label="触发计数关联id" v-model="wbData.syn_com_id" @change="onUpdateWbComponent"></input-normal>
  </el-form>
</template>

<script>
  import InputNormal from '@/views/components/edit/InputNormal.vue'
  import SwitchNormal from '@/views/components/edit/SwitchNormal.vue'
  import DropdownNormal from '@/views/components/edit/DropdownNormal.vue'

  import { addUtils } from '@/views/js/add-utils'
  import { GROUP_TYPES } from '@/common/const-general'

  export default {
    mixins: [addUtils],
    setup () {
      return {
        // GENERAL_TYPES: GENERAL_TYPES,
        GROUP_TYPES: GROUP_TYPES,
      }
    },
    components: {
      InputNormal,
      SwitchNormal,
      DropdownNormal,
    },
  }
</script>
